//App.js
import React from 'react';
import { IconStyle } from './assets/iconfont/iconfont';
import { GlobalStyle } from './style';
import routers from './router';
import {HashRouter} from 'react-router-dom';
import {renderRoutes} from 'react-router-config';

import store from './store';
import {Provider} from 'react-redux';

function App () {
  return (
    <Provider store={store}>
      <HashRouter>
        <GlobalStyle></GlobalStyle>
        <IconStyle></IconStyle>
          {renderRoutes(routers)}
      </HashRouter>
    </Provider>
   
  );
}

export default App;